package com.stadium.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/*
 * 器材
 */
@Entity
@Table(name = "equips")
public class Equipment implements Serializable {

	private static final long serialVersionUID = 6707186883225351246L;

	// 器材编号
	private Integer id;
	// 器材名称
	private String name;
	// 删除状态
	// 0:表示未删除状态 1:表示删除状态
	private Integer status;
	// 剩余量
	private Integer remainNum;

	public Equipment() {
		super();
	}

	public Equipment(Integer id, String name, Integer status, Integer remainNum) {
		super();
		this.id = id;
		this.name = name;
		this.status = status;
		this.remainNum = remainNum;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(length = 20, nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 1, nullable = false)
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "remain_num", length = 20)
	public Integer getRemainNum() {
		return remainNum;
	}

	public void setRemainNum(Integer remainNum) {
		this.remainNum = remainNum;
	}

}
